#!/usr/bin/env python
# -*- coding: utf-8 -*-
#pylint: disable=C0103

"Fake answers for testing Control the monochromator CM-110"

print "%c" % chr(27) #CM.echo()
print "%c" % chr(27) #CM.echo()
print "%c" % chr(27) #CM.echo()
print "%c\n%c" % (chr(1), chr(24)) #CM.select(1)
print "%c\n%c" % (chr(1), chr(24)) #CM.select(2)
print "%c\n%c" % (chr(0), chr(24)) #CM.units(0)
print "%c\n%c" % (chr(1), chr(24)) #CM.units("nm")
print "%c\n%c" % (chr(2), chr(24)) #CM.units(2)
print "%c\n%c" % (chr(2), chr(24)) #CM.goto(800)
print "%c\n%c" % (chr(2), chr(24)) #CM.goto(0)
print "%c\n%c\n%c\n%c" % (chr(0), chr(25), chr(2), chr(24)) #CM.query(0)
print "%c\n%c\n%c\n%c" % (chr(0), chr(0),  chr(2), chr(24)) #CM.query(1)
print "%c\n%c\n%c\n%c" % (chr(4), chr(0xB0), chr(2), chr(24)) #CM.query(2)
print "%c\n%c\n%c\n%c" % (chr(2), chr(0x58), chr(2), chr(24)) #CM.query(3)
print "%c\n%c\n%c\n%c" % (chr(0), chr(1),    chr(2), chr(24)) #CM.query(4)
print "%c\n%c\n%c\n%c" % (chr(0), chr(250),  chr(2), chr(24)) #CM.query(5)
print "%c\n%c\n%c\n%c" % (chr(0), chr(25),   chr(2), chr(24)) #CM.query(6)
print "%c\n%c\n%c\n%c" % (chr(0), chr(2),    chr(2), chr(24)) #CM.query(13)
print "%c\n%c\n%c\n%c" % (chr(0), chr(2),    chr(2), chr(24)) #CM.query(14)
print "%c\n%c\n%c\n%c" % (chr(01), chr(123), chr(2), chr(24)) #CM.query(19)

#CM.query_all() :
print "%c\n%c\n%c\n%c" % (chr(2), chr(0x58), chr(2), chr(24)) #CM.query(3)
print "%c\n%c\n%c\n%c" % (chr(0), chr(1),    chr(2), chr(24)) #CM.query(4)
print "%c\n%c\n%c\n%c" % (chr(4), chr(0xB0), chr(2), chr(24)) #CM.query(2)
print "%c\n%c\n%c\n%c" % (chr(0), chr(2),    chr(2), chr(24)) #CM.query(13)
print "%c\n%c\n%c\n%c" % (chr(0), chr(25),   chr(2), chr(24)) #CM.query(0)
print "%c\n%c\n%c\n%c" % (chr(01), chr(123), chr(2), chr(24)) #CM.query(19)
print "%c\n%c\n%c\n%c" % (chr(0), chr(25),   chr(2), chr(24)) #CM.query(6)
print "%c\n%c\n%c\n%c" % (chr(0), chr(250),  chr(2), chr(24)) #CM.query(5)
print "%c\n%c\n%c\n%c" % (chr(0), chr(0),    chr(2), chr(24)) #CM.query(1)
print "%c\n%c\n%c\n%c" % (chr(0), chr(2),    chr(2), chr(24)) #CM.query(14)
for i in range(66): #CM.query_all()
    print i
